<template>
	<view>
		<view class="nav">
			<view class="title" :style="{marginLeft:rateNum===2?'78%':rateNum===3?'88%':'41%'}">
				{{rateNum===2?"80":rateNum===3?"100":"50"}}%
			</view>
			<view class="step">
				<view class="befo" :style="{width:rateNum===2?'87%':rateNum===3?'100%':'50%'}"></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			rateNum: {
				type: Number,
				default: 1
			}
		},
		data() {
			return {

			}
		}
	}
</script>

<style lang="scss" scoped>
	.nav {
		width: 100%;
		height: 152upx;
		background-color: #F2F1FD;
		padding: 36upx 40upx;
		box-sizing: border-box;

		.title {
			margin-bottom: 10upx;
			color: rgba(130, 113, 239, 100);
			font-size: 30upx;
			margin-left: 41%;
		}

		.step {
			width: 100%;
			height: 28upx;
			background-color: #fff;
			border-radius: 20upx;
			position: relative;

			.befo {
				width: 30%;
				height: 100%;
				background-color: rgba(130, 113, 239, 100);
				position: absolute;
				left: 0;
				border-radius: 20upx;
			}
		}
	}
</style>
